﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Bussines;

namespace ownx
{
    public partial class wfStocks : System.Web.UI.Page
    {    
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                lBackURL.Text = "wfDefault.aspx";//Request.ServerVariables["HTTP_REFERER"];
            }          
        }

        protected void lbIrsz_Click(object sender, EventArgs e)
        {
            Session["TABLE"] = "IRSZ";
            Session["CAPTION"] = "Irányítószámok";
            Response.Redirect("wfStock.aspx");
        }

        protected void lbOrszagok_Click(object sender, EventArgs e)
        {
            Session["TABLE"] = "ORSZAG";
            Session["CAPTION"] = "Országok";
            Response.Redirect("wfStock.aspx");
        }

        protected void lbBank_Click(object sender, EventArgs e)
        {
            Session["TABLE"] = "INTEZMENYEK";
            Session["CAPTION"] = "Bankok";
            Session["FILTER"] = "INT_TIPUS=1";
            Response.Redirect("wfStock.aspx");
        }

        protected void lbBiztosito_Click(object sender, EventArgs e)
        {
            Session["TABLE"] = "INTEZMENYEK";
            Session["CAPTION"] = "Biztosítók";
            Session["FILTER"] = "INT_TIPUS=2";
            Response.Redirect("wfStock.aspx");
        }   

        protected void lbNyugdijB_Click(object sender, EventArgs e)
        {
            Session["TABLE"] = "INTEZMENYEK";
            Session["CAPTION"] = "Nyugdíj biztosítók";
            Session["FILTER"] = "INT_TIPUS=3";
            Response.Redirect("wfStock.aspx");
        }

        protected void btBack_Click(object sender, EventArgs e)
        {
            Response.Redirect(lBackURL.Text);
        }
    }
}